﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="SetInterfaceStyle.aspx.vb" Inherits="MyWorkflow.SetInterfaceStyle" %>
<%@ Register TagPrefix="mnu" Namespace="Mysoft.Map.Application.Menus" Assembly="Mysoft.Map.Application.Components" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="/_common/styles/global.css">
    <link rel="stylesheet" type="text/css" href="/_nav/menu.css">
    <script language="javascript" src="/_common/scripts/global.js"></script>
    <script language="javascript" src="/_nav/menu.js"></script> 
    <script language="javascript" src="/PubProject/js/Public.js"></script>
    <script type="text/javascript">
        // 界面初始化
        var _MyHelpfile = "/MyWorkflow/help/工作流配置/参数配置/参数配置.htm";
		function window.onload()
		{
			if (document.getElementById("txtMode").value!="3")
			{
				scSave.style.display = "";
			}
			BindData()
		}
		
		function BindData(){
		    var sFile = "/myworkflow/Pub_XMLHTTP.aspx?ParamName=" + escape("wf_InterfaceStyle_G");
		    var sRtn = openXMLHTTP(sFile,"GetPI");
		    for(var i = 0;i<document.all.radioInterfaceStyle.length;i++){
		        if(document.all.radioInterfaceStyle[i].value == sRtn){
		            document.all.radioInterfaceStyle[i].checked = true;
		            return;
		        }
		    }
		}
		
		function ParamSave(){
	    	var sFile = "/myworkflow/Pub_XMLHTTP.aspx?ParamValue=" + (document.all.radioInterfaceStyle[0].checked?"lr":"ud") + "&ParamName=" + escape("wf_InterfaceStyle_G");
			
			var sRtn = openXMLHTTP(sFile,"SavePI");
			if (sRtn == "OK")
			{
				alert("保存成功！");
			}else{
			    alert("保存失败！");
			}
		}
    </script>
</head>
<body style="MARGIN: 5px">
    <form id="form1" runat="server">
    <asp:textbox id="txtMode" runat="server" style="DISPLAY:none">2</asp:textbox> 
    </form>
    <table width="100%" style="TABLE-LAYOUT:fixed" cellspacing="0" cellpadding="0">
        <tr>
            <td>
                <mnu:AppGridMenu id="AppGridMenu1" runat="server"></mnu:AppGridMenu>
            </td>
        </tr>
        <tr>
            <td>
                <table width="100%" cellspacing="2" cellpadding="2">
                    <tr align="center">
                        <td><img src="images/lr.jpg" /></td>
                        <td><img src="images/ud.jpg" /></td>
                    </tr>
                    <tr align="center">
                        <td><input type="radio" name="radioInterfaceStyle" value="lr" checked="checked" />左右风格界面</td>
                        <td><input type="radio" name="radioInterfaceStyle" value="ud" />上下风格界面</td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

</body>
</html>